package com.caigou.comm.base.utils

import android.text.TextUtils

/**
 * @author #Suyghur.
 * Created on 2022/02/22
 */
object EditTextUtils {

    fun isNumber(input: String): Boolean {
        if (TextUtils.isEmpty(input)) {
            return false
        }
        val regex = "-?[0-9]+(\\\\.[0-9]+)?".toRegex()
        return regex.matches(input)
    }
}